#include "Graphics/VertexData.h"

#include "Graphics/IDeviceBufferManager.h"


namespace tyro
{
	namespace Graphics
	{

		VertexData::VertexData( VertexDeclaration* decl, VertexBufferBinding* bind )
			:	vertexDeclaration(decl)
			,	vertexBufferBinding(bind)
			,	vertexCount(0)
			,	vertexStart(0)
		{
		}

		void VertexData::InitVertexData( IDeviceBufferManager* mgr )
		{
			vertexDeclaration = mgr->CreateVertexDeclaration();
			vertexBufferBinding = mgr->CreateVertexBufferBinding();
			vertexCount = 0;
			vertexStart = 0;
		}

	}
}